package com.mars.junit.kryo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Person implements Serializable{

	private static final long serialVersionUID = 1L;

	private Integer id ;
	
	private String name ;
	
	private String addr ;
	
	private Date datetime = new Date() ;
	
	private List<Person> children ;

	public List<Person> getChildren() {
		return children;
	}

	public void setChildren(List<Person> children) {
		this.children = children;
	}

	public Person() {
	}
	
	public Person(Integer id) {
		super();
		this.id = id;
		this.name = "怒而惆怅";
		this.addr = "彗星";
	}

	public Person(Integer id, String name, String addr) {
		super();
		this.id = id;
		this.name = name;
		this.addr = addr;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Date getDatetime() {
		return datetime;
	}

	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}

	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", addr=" + addr + ", datetime=" + datetime + ", children=" + children + "]";
	}

	
}
